const Sequelize = require('sequelize');
const {INTEGER, STRING} = Sequelize;
module.exports = ['tableName', {
    room_id: {
        type: STRING,
        allowNull: false,
        comment: '房间ID'
    },
    room_name: {
        type: STRING,
        allowNull: false,
        comment: '房间名称'
    },
    ante: {
        type: INTEGER,
        allowNull: false,
        comment: '分值'
    },
    game_type: {
        type: STRING,
        allowNull: false,
        comment: '游戏类型'
    },
    hand: {
        type: INTEGER,
        allowNull: false,
        comment: '当前手数'
    },
    max_number: {
        type: INTEGER,
        allowNull: false,
        comment: '最大人数'
    },
    current_number: {
        type: INTEGER,
        allowNull: false,
        comment: '当前人数'
    },
    status: {
        type: STRING,
        allowNull: false,
        comment: '牌局状态:empty(空桌),wait(即将开局),played(进行中),finished(已结束)',
        defaultValue: 'empty'
    },
}];
